namespace SmartSoft.ReportForms
{
    using SmartSoft;
    using SmartSoft.Controls;
    using SmartSoft.ADP;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormKTH01Viewer : FormReportViewer
    {
        private IContainer components;
        private LabelControl labelControl1;
        private LabelControl lblBac_Tk;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_Dt_Du;
        private LabelControl lblNgay_Ct1;
        private LabelControl lblNgay_Ct2;
        private LabelControl lblNo_Co;
        private LabelControl lblTk;
        private LabelControl lblTk_Du;
        private TextNumeric txtBac_Tk;
        private TextSearch txtMa_Dt;
        private TextSearch txtMa_Dt_Du;
        private TextDate txtNgay_Ct1;
        private TextDate txtNgay_Ct2;
        private TextOption txtNo_Co;
        private LabelControl txtNo_Co0;
        private TextControl txtTen_Dt;
        private TextControl txtTen_Dt_Du;
        private TextControl txtTen_Tk;
        private TextControl txtTen_Tk_Du;
        private TextSearch txtTk;
        private TextSearch txtTk_Du;

        public FormKTH01Viewer()
        {
            this.InitializeComponent();
            this.txtNgay_Ct1.Value = AppInstance.StartWorkingDate;
            this.txtNgay_Ct2.Value = AppInstance.EndWorkingDate;
        }

        public FormKTH01Viewer(object pd_Ngay_Ct1, object pd_Ngay_Ct2, object ps_Ma_Ct, object ps_Tk, object pi_Bac_Tk, object ps_Tk_Du, object ps_No_Co, object ps_Ma_Dt, object ps_Ma_Dt_Du, object pi_Loai_Tte)
        {
            this.InitializeComponent();
            this.txtNgay_Ct1.Value = pd_Ngay_Ct1;
            this.txtNgay_Ct2.Value = pd_Ngay_Ct2;
            this.txtTk.Value = ps_Tk;
            this.txtBac_Tk.Value = pi_Bac_Tk;
            this.txtTk_Du.Value = ps_Tk_Du;
            this.txtNo_Co.Value = ps_No_Co;
            this.txtMa_Dt.Value = ps_Ma_Dt;
            this.txtMa_Dt_Du.Value = ps_Ma_Dt_Du;
            this.txtTen_Tk.Value = this.txtTk.GetFieldData("Ten_Tk");
            this.txtTen_Tk_Du.Value = this.txtTk_Du.GetFieldData("Ten_Tk");
            this.txtTen_Dt.Value = this.txtMa_Dt.GetFieldData("Ten_Dt");
            this.txtTen_Dt_Du.Value = this.txtMa_Dt_Du.GetFieldData("Ten_Dt");
            this.OnMakeReport();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormKTH01Viewer));
            this.txtNgay_Ct2 = new SmartSoft.Controls.TextDate();
            this.lblNgay_Ct2 = new SmartSoft.Controls.LabelControl();
            this.txtNgay_Ct1 = new SmartSoft.Controls.TextDate();
            this.lblNgay_Ct1 = new SmartSoft.Controls.LabelControl();
            this.txtTen_Dt_Du = new SmartSoft.Controls.TextControl();
            this.txtTen_Dt = new SmartSoft.Controls.TextControl();
            this.txtMa_Dt_Du = new SmartSoft.Controls.TextSearch();
            this.lblMa_Dt_Du = new SmartSoft.Controls.LabelControl();
            this.txtMa_Dt = new SmartSoft.Controls.TextSearch();
            this.lblMa_Dt = new SmartSoft.Controls.LabelControl();
            this.txtNo_Co0 = new SmartSoft.Controls.LabelControl();
            this.txtNo_Co = new SmartSoft.Controls.TextOption();
            this.txtTen_Tk_Du = new SmartSoft.Controls.TextControl();
            this.txtTen_Tk = new SmartSoft.Controls.TextControl();
            this.txtTk_Du = new SmartSoft.Controls.TextSearch();
            this.txtTk = new SmartSoft.Controls.TextSearch();
            this.lblTk_Du = new SmartSoft.Controls.LabelControl();
            this.lblNo_Co = new SmartSoft.Controls.LabelControl();
            this.lblTk = new SmartSoft.Controls.LabelControl();
            this.txtBac_Tk = new SmartSoft.Controls.TextNumeric();
            this.labelControl1 = new SmartSoft.Controls.LabelControl();
            this.lblBac_Tk = new SmartSoft.Controls.LabelControl();
            this.rptContainer.Panel1.SuspendLayout();
            this.rptContainer.SuspendLayout();
            this.SuspendLayout();
            // 
            // rptContainer
            // 
            // 
            // rptContainer.Panel1
            // 
            this.rptContainer.Panel1.Controls.Add(this.txtBac_Tk);
            this.rptContainer.Panel1.Controls.Add(this.txtNgay_Ct2);
            this.rptContainer.Panel1.Controls.Add(this.lblNgay_Ct2);
            this.rptContainer.Panel1.Controls.Add(this.txtNgay_Ct1);
            this.rptContainer.Panel1.Controls.Add(this.lblNgay_Ct1);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Dt_Du);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Dt);
            this.rptContainer.Panel1.Controls.Add(this.txtMa_Dt_Du);
            this.rptContainer.Panel1.Controls.Add(this.lblMa_Dt_Du);
            this.rptContainer.Panel1.Controls.Add(this.txtMa_Dt);
            this.rptContainer.Panel1.Controls.Add(this.lblMa_Dt);
            this.rptContainer.Panel1.Controls.Add(this.txtNo_Co0);
            this.rptContainer.Panel1.Controls.Add(this.txtNo_Co);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Tk_Du);
            this.rptContainer.Panel1.Controls.Add(this.txtTen_Tk);
            this.rptContainer.Panel1.Controls.Add(this.txtTk_Du);
            this.rptContainer.Panel1.Controls.Add(this.txtTk);
            this.rptContainer.Panel1.Controls.Add(this.lblTk_Du);
            this.rptContainer.Panel1.Controls.Add(this.lblBac_Tk);
            this.rptContainer.Panel1.Controls.Add(this.labelControl1);
            this.rptContainer.Panel1.Controls.Add(this.lblNo_Co);
            this.rptContainer.Panel1.Controls.Add(this.lblTk);
            this.rptContainer.SplitterDistance = 151;
            // 
            // txtNgay_Ct2
            // 
            this.txtNgay_Ct2.DateTimeFormat = SmartSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ct2.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ct2.Location = new System.Drawing.Point(316, 129);
            this.txtNgay_Ct2.Mask = "00/00/0000";
            this.txtNgay_Ct2.Name = "txtNgay_Ct2";
            this.txtNgay_Ct2.OldValue = null;
            this.txtNgay_Ct2.Size = new System.Drawing.Size(100, 20);
            this.txtNgay_Ct2.TabIndex = 7;
            this.txtNgay_Ct2.Value = ((object)(resources.GetObject("txtNgay_Ct2.Value")));
            // 
            // lblNgay_Ct2
            // 
            this.lblNgay_Ct2.AutoSize = true;
            this.lblNgay_Ct2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ct2.Location = new System.Drawing.Point(256, 132);
            this.lblNgay_Ct2.Name = "lblNgay_Ct2";
            this.lblNgay_Ct2.Size = new System.Drawing.Size(54, 14);
            this.lblNgay_Ct2.TabIndex = 116;
            this.lblNgay_Ct2.Text = "Đến ngày";
            // 
            // txtNgay_Ct1
            // 
            this.txtNgay_Ct1.DateTimeFormat = SmartSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ct1.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ct1.Location = new System.Drawing.Point(108, 129);
            this.txtNgay_Ct1.Mask = "00/00/0000";
            this.txtNgay_Ct1.Name = "txtNgay_Ct1";
            this.txtNgay_Ct1.OldValue = null;
            this.txtNgay_Ct1.Size = new System.Drawing.Size(100, 20);
            this.txtNgay_Ct1.TabIndex = 6;
            this.txtNgay_Ct1.Value = ((object)(resources.GetObject("txtNgay_Ct1.Value")));
            // 
            // lblNgay_Ct1
            // 
            this.lblNgay_Ct1.AutoSize = true;
            this.lblNgay_Ct1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ct1.Location = new System.Drawing.Point(12, 132);
            this.lblNgay_Ct1.Name = "lblNgay_Ct1";
            this.lblNgay_Ct1.Size = new System.Drawing.Size(47, 14);
            this.lblNgay_Ct1.TabIndex = 117;
            this.lblNgay_Ct1.Text = "Từ ngày";
            // 
            // txtTen_Dt_Du
            // 
            this.txtTen_Dt_Du.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Dt_Du.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Dt_Du.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Dt_Du.CheckTextSearched = false;
            this.txtTen_Dt_Du.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt_Du.Enabled = false;
            this.txtTen_Dt_Du.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Dt_Du.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt_Du.Location = new System.Drawing.Point(214, 112);
            this.txtTen_Dt_Du.Name = "txtTen_Dt_Du";
            this.txtTen_Dt_Du.OldValue = null;
            this.txtTen_Dt_Du.Size = new System.Drawing.Size(458, 13);
            this.txtTen_Dt_Du.TabIndex = 114;
            this.txtTen_Dt_Du.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Dt_Du.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Dt_Du.Value = ((object)(resources.GetObject("txtTen_Dt_Du.Value")));
            // 
            // txtTen_Dt
            // 
            this.txtTen_Dt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Dt.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Dt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Enabled = false;
            this.txtTen_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Dt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Location = new System.Drawing.Point(214, 28);
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new System.Drawing.Size(458, 13);
            this.txtTen_Dt.TabIndex = 115;
            this.txtTen_Dt.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Dt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Dt.Value = ((object)(resources.GetObject("txtTen_Dt.Value")));
            // 
            // txtMa_Dt_Du
            // 
            this.txtMa_Dt_Du.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Dt_Du.CheckTextSearched = false;
            this.txtMa_Dt_Du.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Dt_Du.EmptyIsValid = true;
            this.txtMa_Dt_Du.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt_Du.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Dt_Du.FoundIsValid = true;
            this.txtMa_Dt_Du.Location = new System.Drawing.Point(108, 108);
            this.txtMa_Dt_Du.MaxLength = 32;
            this.txtMa_Dt_Du.Name = "txtMa_Dt_Du";
            this.txtMa_Dt_Du.OldValue = null;
            this.txtMa_Dt_Du.Size = new System.Drawing.Size(100, 20);
            this.txtMa_Dt_Du.TabIndex = 5;
            this.txtMa_Dt_Du.TableName = "DMDT";
            this.txtMa_Dt_Du.TextDisplay = this.txtTen_Dt_Du;
            this.txtMa_Dt_Du.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt_Du.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Dt_Du.Value = ((object)(resources.GetObject("txtMa_Dt_Du.Value")));
            // 
            // lblMa_Dt_Du
            // 
            this.lblMa_Dt_Du.AutoSize = true;
            this.lblMa_Dt_Du.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Dt_Du.Location = new System.Drawing.Point(12, 111);
            this.lblMa_Dt_Du.Name = "lblMa_Dt_Du";
            this.lblMa_Dt_Du.Size = new System.Drawing.Size(94, 14);
            this.lblMa_Dt_Du.TabIndex = 113;
            this.lblMa_Dt_Du.Text = "Đối tượng đối ứng";
            // 
            // txtMa_Dt
            // 
            this.txtMa_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Dt.EmptyIsValid = true;
            this.txtMa_Dt.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Dt.FoundIsValid = true;
            this.txtMa_Dt.Location = new System.Drawing.Point(108, 24);
            this.txtMa_Dt.MaxLength = 32;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.Size = new System.Drawing.Size(100, 20);
            this.txtMa_Dt.TabIndex = 1;
            this.txtMa_Dt.TableName = "DMDT";
            this.txtMa_Dt.TextDisplay = this.txtTen_Dt;
            this.txtMa_Dt.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Dt.Value = ((object)(resources.GetObject("txtMa_Dt.Value")));
            // 
            // lblMa_Dt
            // 
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Dt.Location = new System.Drawing.Point(12, 27);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new System.Drawing.Size(55, 14);
            this.lblMa_Dt.TabIndex = 112;
            this.lblMa_Dt.Text = "Đối tượng";
            // 
            // txtNo_Co0
            // 
            this.txtNo_Co0.AutoSize = true;
            this.txtNo_Co0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNo_Co0.ForeColor = System.Drawing.Color.Blue;
            this.txtNo_Co0.Location = new System.Drawing.Point(136, 48);
            this.txtNo_Co0.Name = "txtNo_Co0";
            this.txtNo_Co0.Size = new System.Drawing.Size(106, 14);
            this.txtNo_Co0.TabIndex = 111;
            this.txtNo_Co0.Text = "*-Tất cả, N-Nợ, C-Có";
            // 
            // txtNo_Co
            // 
            this.txtNo_Co.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtNo_Co.CheckTextSearched = false;
            this.txtNo_Co.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtNo_Co.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNo_Co.InputMask = "*,N,C";
            this.txtNo_Co.Location = new System.Drawing.Point(108, 45);
            this.txtNo_Co.Name = "txtNo_Co";
            this.txtNo_Co.OldValue = null;
            this.txtNo_Co.Size = new System.Drawing.Size(22, 20);
            this.txtNo_Co.TabIndex = 2;
            this.txtNo_Co.Text = "*";
            this.txtNo_Co.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtNo_Co.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtNo_Co.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtNo_Co.Value = "*";
            // 
            // txtTen_Tk_Du
            // 
            this.txtTen_Tk_Du.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk_Du.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk_Du.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Du.CheckTextSearched = false;
            this.txtTen_Tk_Du.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du.Enabled = false;
            this.txtTen_Tk_Du.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Du.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Du.Location = new System.Drawing.Point(214, 91);
            this.txtTen_Tk_Du.Name = "txtTen_Tk_Du";
            this.txtTen_Tk_Du.OldValue = null;
            this.txtTen_Tk_Du.Size = new System.Drawing.Size(458, 13);
            this.txtTen_Tk_Du.TabIndex = 109;
            this.txtTen_Tk_Du.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Du.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Du.Value = ((object)(resources.GetObject("txtTen_Tk_Du.Value")));
            // 
            // txtTen_Tk
            // 
            this.txtTen_Tk.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk.CheckTextSearched = false;
            this.txtTen_Tk.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Enabled = false;
            this.txtTen_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Location = new System.Drawing.Point(214, 6);
            this.txtTen_Tk.Name = "txtTen_Tk";
            this.txtTen_Tk.OldValue = null;
            this.txtTen_Tk.Size = new System.Drawing.Size(458, 13);
            this.txtTen_Tk.TabIndex = 110;
            this.txtTen_Tk.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk.Value = ((object)(resources.GetObject("txtTen_Tk.Value")));
            // 
            // txtTk_Du
            // 
            this.txtTk_Du.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Du.CheckTextSearched = false;
            this.txtTk_Du.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Du.EmptyIsValid = true;
            this.txtTk_Du.FieldDisplay = "Ten_Tk";
            this.txtTk_Du.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Du.FoundIsValid = true;
            this.txtTk_Du.Location = new System.Drawing.Point(108, 87);
            this.txtTk_Du.MaxLength = 32;
            this.txtTk_Du.Name = "txtTk_Du";
            this.txtTk_Du.OldValue = null;
            this.txtTk_Du.Size = new System.Drawing.Size(100, 20);
            this.txtTk_Du.TabIndex = 4;
            this.txtTk_Du.TableName = "DMTK";
            this.txtTk_Du.TextDisplay = this.txtTen_Tk_Du;
            this.txtTk_Du.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Du.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Du.Value = ((object)(resources.GetObject("txtTk_Du.Value")));
            // 
            // txtTk
            // 
            this.txtTk.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk.CheckTextSearched = false;
            this.txtTk.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk.FieldDisplay = "Ten_Tk";
            this.txtTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk.FoundIsValid = true;
            this.txtTk.Location = new System.Drawing.Point(108, 3);
            this.txtTk.MaxLength = 32;
            this.txtTk.Name = "txtTk";
            this.txtTk.OldValue = null;
            this.txtTk.Size = new System.Drawing.Size(100, 20);
            this.txtTk.TabIndex = 0;
            this.txtTk.TableName = "DMTK";
            this.txtTk.TextDisplay = this.txtTen_Tk;
            this.txtTk.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk.Value = ((object)(resources.GetObject("txtTk.Value")));
            // 
            // lblTk_Du
            // 
            this.lblTk_Du.AutoSize = true;
            this.lblTk_Du.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Du.Location = new System.Drawing.Point(12, 90);
            this.lblTk_Du.Name = "lblTk_Du";
            this.lblTk_Du.Size = new System.Drawing.Size(92, 14);
            this.lblTk_Du.TabIndex = 108;
            this.lblTk_Du.Text = "Tài khoản đối ứng";
            // 
            // lblNo_Co
            // 
            this.lblNo_Co.AutoSize = true;
            this.lblNo_Co.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNo_Co.Location = new System.Drawing.Point(12, 48);
            this.lblNo_Co.Name = "lblNo_Co";
            this.lblNo_Co.Size = new System.Drawing.Size(51, 14);
            this.lblNo_Co.TabIndex = 107;
            this.lblNo_Co.Text = "Phát sinh";
            // 
            // lblTk
            // 
            this.lblTk.AutoSize = true;
            this.lblTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk.Location = new System.Drawing.Point(12, 6);
            this.lblTk.Name = "lblTk";
            this.lblTk.Size = new System.Drawing.Size(53, 14);
            this.lblTk.TabIndex = 106;
            this.lblTk.Text = "Tài khoản";
            // 
            // txtBac_Tk
            // 
            this.txtBac_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtBac_Tk.Location = new System.Drawing.Point(108, 66);
            this.txtBac_Tk.Name = "txtBac_Tk";
            this.txtBac_Tk.NumericPrecision = 2;
            this.txtBac_Tk.NumericScaleOnFocus = 0;
            this.txtBac_Tk.NumericScaleOnLostFocus = 0;
            this.txtBac_Tk.NumericValue = new decimal(new int[] {
            3,
            0,
            0,
            0});
            this.txtBac_Tk.OldValue = null;
            this.txtBac_Tk.Size = new System.Drawing.Size(22, 20);
            this.txtBac_Tk.TabIndex = 3;
            this.txtBac_Tk.Text = "3";
            this.txtBac_Tk.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtBac_Tk.UserTextNumericFormat = SmartSoft.AppInstance.TextNumericFormat.None;
            this.txtBac_Tk.Value = new decimal(new int[] {
            3,
            0,
            0,
            0});
            // 
            // labelControl1
            // 
            this.labelControl1.AutoSize = true;
            this.labelControl1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelControl1.Location = new System.Drawing.Point(12, 72);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new System.Drawing.Size(51, 14);
            this.labelControl1.TabIndex = 107;
            this.labelControl1.Text = "Phát sinh";
            // 
            // lblBac_Tk
            // 
            this.lblBac_Tk.AutoSize = true;
            this.lblBac_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblBac_Tk.Location = new System.Drawing.Point(12, 69);
            this.lblBac_Tk.Name = "lblBac_Tk";
            this.lblBac_Tk.Size = new System.Drawing.Size(72, 14);
            this.lblBac_Tk.TabIndex = 107;
            this.lblBac_Tk.Text = "Bậc tài khoản";
            // 
            // FormKTH01Viewer
            // 
            this.ClientSize = new System.Drawing.Size(794, 539);
            this.Name = "FormKTH01Viewer";
            this.rptContainer.Panel1.ResumeLayout(false);
            this.rptContainer.Panel1.PerformLayout();
            this.rptContainer.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        protected override void OnGenerateColumns()
        {
            object[][] objArray = new object[4][];
            object[] objArray2 = new object[4];
            objArray2[0] = "Tk";
            objArray2[1] = "T\x00e0i khoản";
            objArray2[2] = "C";
            objArray[0] = objArray2;
            object[] objArray3 = new object[4];
            objArray3[0] = "Ten_Tk";
            objArray3[1] = "Tên tài khoản";
            objArray3[2] = "C";
            objArray[1] = objArray3;
            objArray[2] = new object[] { "Ps_No", "Ph\x00e1t sinh nợ", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[3] = new object[] { "Ps_Co", "Ph\x00e1t sinh có", "N", AppInstance.TextNumericFormat.LocalAmount };
            base.LocalColNames = objArray;
            base.OnGenerateColumns();
        }

        protected override void OnMakeReport()
        {
            AppInstance.StartWorkingDate = (DateTime) this.txtNgay_Ct1.Value;
            AppInstance.EndWorkingDate = (DateTime) this.txtNgay_Ct2.Value;
            base.LocalTable = new ReportDataAccess().KTH01_Get(AppInstance.Subsidiaries, this.txtNgay_Ct1.Value, this.txtNgay_Ct2.Value, "", this.txtTk.Value, this.txtBac_Tk.Value, this.txtTk_Du.Value, this.txtNo_Co.Value, this.txtMa_Dt.Value, this.txtMa_Dt_Du.Value, AppInstance.DefLanguage);
            base.OnMakeReport();
        }

        protected override void OnSendParameters()
        {
            base.StimulReport["Ngay"] = "Từ ngày " + string.Format("{0:dd/MM/yyyy}", this.txtNgay_Ct1.Value) + " đến ngày " + string.Format("{0:dd/MM/yyyy}", this.txtNgay_Ct2.Value);
            base.StimulReport["TaiKhoan"] = "T\x00e0i khoản: " + this.txtTk.Text + " - " + this.txtTen_Tk.Text;
            if (!string.IsNullOrEmpty(this.txtMa_Dt.Value.ToString()))
            {
                base.StimulReport["DoiTuong"] = string.Concat(new object[] { "Đối tượng: ", this.txtMa_Dt.Value, " - ", this.txtTen_Dt.Value });
            }
            if (!string.IsNullOrEmpty(this.txtTk_Du.Value.ToString()))
            {
                base.StimulReport["TaiKhoanDoiUng"] = string.Concat(new object[] { "T\x00e0i khoản đối ứng: ", this.txtTk_Du.Value, " - ", this.txtTen_Tk_Du.Value });
            }
            if (!string.IsNullOrEmpty(this.txtMa_Dt_Du.Value.ToString()))
            {
                base.StimulReport["DoiTuongDoiUng"] = string.Concat(new object[] { "Đối tượng đối ứng: ", this.txtMa_Dt_Du.Value, " - ", this.txtTen_Dt_Du.Value });
            }
        }

        //protected override void OnShowDetail()
        //{
        //    object obj2 = ((DataRowView) base.DataGridBrowser.CurrentRow.DataBoundItem).Row["Tk"];
        //    if (!string.IsNullOrEmpty(obj2.ToString()))
        //    {
        //        FormKCT01Viewer viewer = new FormKCT01Viewer(this.txtNgay_Ct1.Value, this.txtNgay_Ct2.Value, "", this.txtTk.Value, obj2, this.txtNo_Co.Value, this.txtMa_Dt.Value, this.txtMa_Dt_Du.Value, base.CurrencyIndex);
        //        viewer.TitleText = "Sổ chi tiết tài khoản";
        //        viewer.ReportTitle = "Sổ chi tiết tài khoản";
        //        viewer.ReportFile = "KCT01";
        //        viewer.Show();
        //    }
        //}
    }
}

